/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-09-06
 * Time: 22:47
 */
public class ThreadDemo4 {
    private static Object locker = new Object();
    public static void main(String[] args) throws InterruptedException {
        for(int i = 0; i < 10; i++) {
            Thread t1 = new Thread(() -> {
                System.out.print("A");
            });

            Thread t2 = new Thread(() -> {
                System.out.print("B");
            });

            Thread t3 = new Thread(() -> {
                System.out.println("C");
            });

            t1.start();
            t1.join();
            t2.start();
            t1.join();
            t3.start();
            t3.join();
        }
    }
}
